//*****************************************************************************
//
// ABEC3 Solving File
// Project: Speaker Cabinet SP38 Baffle
//
//*****************************************************************************

// Vented Enclosure

File="Nodes.txt"

 
SubDomain_Properties 'Enclosure'
  SubDomain=1
  ElType=Interior           

SubDomain_Properties 'Vent'
  SubDomain=2
  ElType=Interior

SubDomain_Properties 'Exterior'
  SubDomain=3
  ElType=Exterior            // Radiation to infinity

Infinite_Baffle
  SubDomain=3
  IBPlane=z                  // Floor reflection

Elements "Enclosure-Interior"
  RefNodes="NF"
  SubDomain=1
  101   12201  12204  12203  12202  // rear wall
  102   12001  12201  12202  12002  // top wall
  103   12004  12003  12203  12204  // bottom wall
  104   12002  12202  12203  12003  // side wall

Elements "Enclosure-Exterior"
  RefNodes="NF"
  SubDomain=3
  SwapNormals=true
  101   2201  2204  2203  2202  // rear wall
  102   2001  2201  2202  2002  // top wall
  // 103   2004  2003  2203  2204  // bottom wall (remove because of IB)
  104   2002  2202  2203  2003  // side wall


// Inner boundary of vent
Duct "Vent-Inner"
  SubDomain=2
  EdgeLength=50mm
  WD=200mm;  HD=100mm;  Len=120mm

// Outer boundary of vent, which belongs to the cabinet boundaries.
Duct "Vent-Outer"
  SubDomain=1
  EdgeLength=70mm
  WD=220mm;  HD=120mm;  Len=108mm
  SwapNormals

// Flange at inside of vent, belongs to cabinet boundaries.
Transition "Vent-Flange"
  Subdomain=1
  RefElements="Vent-Inner","Vent-Outer"
  RefEdges=2,2


// Interface between vent and cabinet
Transition "I-Vent-Inner"
  Subdomain=2,1
  EdgeLength=50mm
  RefElement="Vent-Inner"
  RefEdge=2

// Interface between outside and vent
Transition "I-Vent-Outer"
  Subdomain=3,2
  EdgeLength=50mm
  RefElement="Vent-Inner"
  RefEdge=1


WallImpedance "Vent Damping"
  RefElements="Vent-Inner"
  ImpType=Damping
  Value=0.1

WallImpedance "Enclosure Damping"
  RefElements="Enclosure-Interior"
  ImpType=Damping
  Value=0.01


// Front of cabinet, which belongs to exterior boundaries.
Baffle "Exterior"
  Subdomain=3
  EdgeLength=70mm,30mm
  Vertices=2004,2003,2002,2001  "NF"
  101  Ref="Cone Front"   x=0  y=413.5mm
  102  Ref="Vent-Inner"   x=0  y=125.0mm

// Rear of cabinet-front-baffle, which belongs to cabinet boundaries.
// Note, Vertices= makes this Baffle to show also in positive x-direction,
// i.e. the Normal of the vertices are pointing in x-direction.
// In this way local coordinates are similar to the front Baffle, and
// the Diaphragm with Side=rear is aligned with the front Diaphragm.
Baffle "Interior"
  Subdomain=1
  EdgeLength=70mm,30mm
  Vertices=12004,12003,12002,12001  "NF"
  Side=Rear
  101  Ref="Cone rear"    x=0mm  y=401.5mm
  102  Ref="Vent-Outer"   x=0mm  y=115.0mm

WallImpedance
  ImpType=Damping
  Value=0.01
  RefElements="Interior"


Diaphragm  "Cone front"
  Side=Front                   // Creates elements for the front side of the diaphragm
  DrvGroup=1001                // Driving group link to observation stage
  SubDomain=3                  // Front side belongs to sub-domain 3
  EdgeLength=68mm
  dD=340mm                     // Diameter of cone
  tD1=70mm                     // Inner depth of cone to base of dust cap
  dD1=100mm                    // Diameter of dust cap
  hD1=30mm                     // Height of dust cap
  Simple=true                  // Simple model
  // Because Simple=true following parameters are ignored
  //Ws=10mm                    // Width of outer suspension
  hD2=100mm                    // Height of total cone on the outside
  dVC=50mm                     // Diameter of voice coil
  hVC=5mm                      // Height of voice coil
  dM=200mm                     // Diameter of magnet
  hM=30mm                      // Height of magnet

Diaphragm  "Cone rear"
  Side=Rear                    // This is the rear side of the diaphragm
  DrvGroup=1002                // Driving group link to observation stage
  SubDomain=1                  // This side belongs to sub-domain SubDomain=1
  RefDiaphragm="Cone front"    // Inherite from "Cone front"



